import { menuConfigMap } from './menuConfigMap';
export const menuConfig = [
  {
    id: 'phoneCS',
    name: '手机号查询',
    path: 'phoneCS',
    severalLevels: '1',
    authority: ['admin', 'HDK'],
    component: menuConfigMap.PhoneCS,
    icon: 'QuestionOutlined',
  },
  {
    id: 'application',
    title: '栗子',
    severalLevels: '1',
    sub: 'sub1',
    icon: 'QuestionOutlined',

    children: [
      {
        id: 'Cs-sfz',
        name: '身份证查询',
        authority: ['admin', 'HDK'],
        severalLevels: '2',
        path: 'Cs-sfz',
        component: menuConfigMap.SfzCS,
        icon: 'QuestionOutlined',
      },
      {
        id: 'table-tree-button',
        name: '树状表格',
        severalLevels: '2',
        path: 'table-tree-button',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.TableTreeButton,
      },
      {
        id: 'proess-1',
        name: '播放进度条',
        severalLevels: '2',
        authority: ['admin'],
        path: 'proess',
        icon: 'QuestionOutlined',

        component: menuConfigMap.Proess,
      },
      {
        id: 'proess-2',
        name: '滑动条-进度条',
        severalLevels: '2',
        authority: ['admin'],
        path: 'slider-proess',
        icon: 'QuestionOutlined',

        component: menuConfigMap.SliderProess,
      },
      {
        id: 'dataV',
        name: '大屏可视化',
        severalLevels: '2',
        authority: ['admin'],
        path: 'react-datav',
        icon: 'QuestionOutlined',

        component: menuConfigMap.ReactDataV,
      },
      {
        id: 'Magnifying',
        name: '放大镜',
        severalLevels: '2',
        authority: ['admin'],
        path: 'Magnifying',
        icon: 'QuestionOutlined',

        component: menuConfigMap.Magnifying,
      },
      {
        id: 'TableChildrenTable',
        name: '表格中子级表格',
        severalLevels: '2',
        authority: ['admin'],
        path: 'TableChildrenTable',
        icon: 'QuestionOutlined',

        component: menuConfigMap.TableChildrenTable,
      },
      {
        id: 'UnInvertTable',
        name: '反选表格',
        severalLevels: '2',
        authority: ['admin'],
        path: 'UnInvertTable',
        icon: 'QuestionOutlined',

        component: menuConfigMap.UnInvertTable,
      },
      {
        id: 'Swiper',
        name: 'swiper轮播图',
        severalLevels: '2',
        authority: ['HDK'],
        path: 'Swiper',
        icon: 'QuestionOutlined',

        component: menuConfigMap.Swiper,
      },
      {
        id: 'export-excel',
        name: '导出excel',
        severalLevels: '2',
        authority: ['admin'],
        path: 'export-excel',
        icon: 'QuestionOutlined',

        component: menuConfigMap.ExportExcel,
      },
      {
        id: 'check-table',
        name: '自定义table复选框',
        severalLevels: '2',
        authority: ['admin'],
        path: 'check-table',
        icon: 'QuestionOutlined',

        component: menuConfigMap.CheckTable,
      },
    ],
  },
  {
    id: 'study',
    title: '学习',
    sub: 'sub4',
    icon: 'QuestionOutlined',
    severalLevels: '1',
    children: [
      {
        id: 'studyUseReducer',
        name: '学习useReducer',
        severalLevels: '2',
        path: 'studyUseReducer',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.StudyUseReducer,
      },
      {
        id: 'StudyModal',
        name: '学习Modal',
        severalLevels: '2',
        path: 'StudyModal',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.StudyModal,
      },
      {
        id: 'Echarts',
        name: 'Echarts',
        severalLevels: '2',
        path: 'Echarts',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.Echarts,
      },
      {
        id: 'Xterm',
        name: '终端Xshell',
        severalLevels: '2',
        path: 'Xterm',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.Xterm,
      },
      {
        id: 'treeList',
        name: '树形控件',
        severalLevels: '2',
        path: 'treeList',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.TreeList,
      },
      {
        id: 'StudyForwardRef',
        name: '学习forwardRef和useImperativeHandle',
        severalLevels: '2',
        path: 'StudyForwardRef',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.StudyForwardRef,
      },
      {
        id: 'StudyPDF',
        name: '学习PDF',
        severalLevels: '2',
        path: 'StudyPDF',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.StudyPDF,
      },
      {
        id: 'StyleDeckGl',
        name: '学习deck.gl',
        severalLevels: '2',
        path: 'StyleDeckGl',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.StyleDeckGl,
      },
      {
        id: 'TableColRowHB',
        name: '学习表格合并',
        severalLevels: '2',
        path: 'TableColRowHB',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.TableColRowHB,
      },
      {
        id: 'Study_HOC',
        name: '学习HOC',
        severalLevels: '2',
        path: 'Study_HOC',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.Study_HOC,
      },
    ],
  },
  {
    id: 'AntV',
    title: 'AntV-G6',
    sub: 'sub2',
    icon: 'QuestionOutlined',

    severalLevels: '1',
    children: [
      {
        id: 'Antv-lz',
        name: 'AntV-G6-练习',
        severalLevels: '2',
        path: 'antv-lz',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.AntVLz,
      },
      {
        id: 'Antv-Tree',
        name: 'AntV-G6-Tree',
        severalLevels: '2',
        path: 'antv-tree',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.AntVTree,
      },
      {
        id: 'Antv-topo',
        name: '拓扑结构图',
        severalLevels: '2',
        path: 'antv-topo',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.Topo,
      },
      {
        id: 'TopologyEditor',
        name: '拓扑编辑器',
        severalLevels: '2',
        path: 'TopologyEditor',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.TopologyEditor,
      },
      {
        id: 'CreateEdge',
        name: '创建边',
        severalLevels: '2',
        path: 'CreateEdge',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.CreateEdge,
      },
    ],
  },
  {
    id: 'three',
    title: 'threeJS',
    sub: 'sub3',
    icon: 'QuestionOutlined',

    severalLevels: '1',
    children: [
      {
        id: 'ThreeJSBoxGeometry',
        name: '旋转的立方体',
        severalLevels: '2',
        path: 'threeJSBoxGeometry',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.ThreeJSBoxGeometry,
      },
    ],
  },
  {
    id: 'video',
    title: '电影',
    sub: 'sub5',
    icon: 'QuestionOutlined',

    severalLevels: '1',
    children: [
      {
        id: 'nobody',
        name: '小人物',
        severalLevels: '2',
        path: 'nobody',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.VideoHls,
      },
    ],
  },
  {
    id: 'game',
    title: '游戏',
    sub: 'sub6',
    icon: 'QuestionOutlined',

    severalLevels: '1',
    children: [
      {
        id: 'snake',
        name: '贪吃蛇',
        severalLevels: '2',
        path: 'snake',
        authority: ['admin'],
        icon: 'QuestionOutlined',

        component: menuConfigMap.Snake,
      },
    ],
  },
  {
    id: 'operation',
    title: '运算',
    sub: 'sub7',
    icon: 'QuestionOutlined',
    severalLevels: '1',
    children: [
      {
        id: 'SegmentationOperation',
        name: '分割存储',
        severalLevels: '2',
        path: 'SegmentationOperation',
        authority: ['admin'],
        icon: 'QuestionOutlined',
        component: menuConfigMap.SegmentationOperation,
      },
    ],
  },
];
